url = "/account/history.html"
title='customer-history'
layout='default-x'
description = '浏览历史页面'
==
<link href="{{ 'assets/css/base.css'|theme }}" rel="stylesheet" type="text/css" />
{% set historys = catalog.fetchProductViewHistories %}

<!-- contents -->
<div id="contents">
	<nav class="crumbs_nav">
		<ul class="crumbs_list rdstr">
			<li class="crumbs_item">
				<a class="crumbs_link" href="/">
					<span>ホーム</span>
				</a>
			</li>
			<li class="crumbs_item">
				<a class="crumbs_link" href="{{ 'account/dashboard'|page }}">
					<span>マイページ</span>
				</a>
			</li>
			<li class="crumbs_item no_deco">
				<span class="crumbs_link">閲覧履歴</span>
			</li>
		</ul>
	</nav>
	<h2 class="title_main">閲覧履歴</h2>

	
	<!-- 有记录时显示 -->
    {% if count(historys) > 0 %}
	<section>
			<ul class="list_product_line list_product_line_checkbox clearfix">
			    {% for historyProduct in historys %}
				<li class="list_product_item">
					<div class="box_list">
						<div class="list_product_link box_list_main">
							<div class="list_product_frame">
								<div class="list_product_img_block">
								<a href="{{historyProduct.url }}">
									<img src="{{ historyProduct.getMainThumb(67,90) }}">
								</a>
								</div>
								<div class="list_product_text_block">
									<a class="db" href="">
										<!-- <p class="list_product_brand rdstr">Felt Maglietta</p> -->
										<p class="list_product_name"><a href="{{historyProduct.url}}">{{ historyProduct.name }}</a></p>
										<p class="list_product_category rdstr">
										{% if historyProduct.status=="instock" %}
                                            在庫
                                        {% else %}
                                            在庫あり 
                                        {% endif %}</p>
										<p class="list_product_price_block rdstr pricedownView">
											<span class="list_product_price force_color">{{ historyProduct.price|formatPrice }}</span>
										</p>
									</a>
								</div>
								<span class="arrow"></span>
							</div>
						</div>
					</div>
				</li>
				{% endfor %}
			</ul>
	</section>
    {% else %}
    <!-- 无记录时显示 -->
	<section>
		<div class="base_frame base_area">
			<p class="txt">閲覧履歴はありません</p>
		</div>
	</section>
	{% endif %}
</div>
<!-- end contents -->